import {ConfigState} from "./reducer";

export const CHANGE_CONFIG_STATUS = "change_config_status";

interface ChangeConfigAction {
    type: typeof CHANGE_CONFIG_STATUS;
    payload: ConfigState;
}

export type ConfigTypes = ChangeConfigAction;

export const changeConfigStatusActionCreator = (status: ConfigState): ChangeConfigAction => {
    return {
        type: CHANGE_CONFIG_STATUS,
        payload: status
    }
}